package actions;

import objects.WorldObject;
import factory.Constants;
import factory.ObjectFactory;
import universe.Universe;
import interfaces.impl.Action;

public class ActionBuildBadHouse extends Action{
	
	public ActionBuildBadHouse(){
		super();
		this.id=Constants.ACTION_BUILD_BAD_HOUSE;
	}
	
	public ActionBuildBadHouse(int priority){
		super(priority);
		this.id=Constants.ACTION_BUILD_BAD_HOUSE;
	}

	@Override
	public boolean processAction(Universe world) {
		
		WorldObject obj = ObjectFactory.createWorldObject(Constants.OBJECT_REFERENCE_BAD_HOUSE, source.getPosition());
		world.getListObjectsToAdd().add(obj);
		
		return true;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}
	
	

}
